package MainPackage;

public class Car extends Auto{
	
	private String air;
	private String CD;
	
	public Car(int tyreNum, String color, int weight, double speed,String air,String CD) {
		super(tyreNum, color, weight, speed);
		this.air=air;
		this.CD=CD;
	}
	
	public void addSpeed(double sp){
		this.setSpeed(this.getSpeed()+sp);
	}
	public void downSpeed(double sp){
		this.setSpeed(this.getSpeed()+sp);
	}
	
	public static void main(String[]args){
		Car car=new Car(4,"white",123,155,"AUX","MyCd");
		System.out.println(car.getSpeed());
		car.addSpeed(100);
		System.out.println(car.getSpeed());
	}
	
}
